package com.daxt.model.dic;

/**
 * @description: 四性
 *
 * @author: lig
 * @date: 2022-02-24
 */
public enum DicFourSex {

	TYPE_1("1","真实性"), //
	TYPE_2("2","完整性"), //
	TYPE_3("3","可用性"), //
	TYPE_4("4","安全性") //
	;

	private String key;
	private String value;

	DicFourSex(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		DicFourSex[] values = DicFourSex.values();
		for (DicFourSex type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
